Skip to content

Conversation

@kraenhansen
Copy link
Contributor

Description

This is an attempt at stabalizing the install / smoke tests on Debian.

Checklist

  • New tests and/or benchmarks are included
  • Documentation is changed or added
  • If this change updates the UI, screenshots/videos are added and a design review is requested
  • I have signed the MongoDB Contributor License Agreement (https://www.mongodb.com/legal/contributor-agreement)

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

@kraenhansen kraenhansen self-assigned this May 23, 2025
@kraenhansen kraenhansen added no release notes Fix or feature not for release notes no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion) labels May 23, 2025
@kraenhansen kraenhansen force-pushed the kh/install-tests/fix-deb-linux branch from 0209388 to ebc053f Compare May 23, 2025 07:09
@kraenhansen kraenhansen changed the title chore(smoke-tests): switch to "apt-get" and try updating the package index first chore(smoke-tests): try updating the package index first May 23, 2025
// Update package index first to avoid fetching missing packages
execute('sudo', ['apt-get', 'update']);
// Using "apt" instead of "apt-get" to install dependencies
execute('sudo', ['apt', 'install', filepath]);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's okay for our case, but worth keeping in mind that apt man page specifically doesn't recommend usage in scripts 🙂

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah - I was considering using apt-get, but as far as I can tell, that won't install dependencies of the archive.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fine, yeah, you can run multiple commands in sequence to basically do what apt does, but also we can make an argument that we're testing the exact flow our users will go through, so that would make using apt directly more appropriate 🙂

@kraenhansen
Copy link
Contributor Author

It worked 🎉 https://github.com/mongodb-js/compass/actions/runs/15204993399

@kraenhansen kraenhansen changed the title chore(smoke-tests): try updating the package index first chore(smoke-tests): try updating the package index first COMPASS-9405 May 23, 2025
@kraenhansen kraenhansen removed the no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion) label May 23, 2025
@kraenhansen kraenhansen marked this pull request as ready for review May 23, 2025 11:35
@kraenhansen kraenhansen merged commit f675df5 into main May 23, 2025
63 checks passed
@kraenhansen kraenhansen deleted the kh/install-tests/fix-deb-linux branch May 23, 2025 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no release notes Fix or feature not for release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants